package com.woniuxy.handler;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.woniuxy.pojo.Member;
import com.woniuxy.service.MemberService;

@Controller
@RequestMapping("/member")
public class MemberHandler {
	
	private MemberService memberService;
	
	@RequestMapping("/message")
	public List<Member> findMember(String message){
		return memberService.findMember(message);
	}
	
	@RequestMapping("/all")
	public List<Member> getAll(){
		
		return memberService.getAll();
	}

}
